@extends('home.search.layout')
@section('content')

		<div class="list_resulte_banner">
			<div class="list_resulte_left">
				<span class="list_breadcrumb">奇异果为您找到{{$count}}个相关直播</span>

				 <div class="list_cont_right lisst_cont_zb">
                	<ul>
						@if($archives)
							@foreach($archives as $v)
                		<li>
							@if($v->tag() && $v->tag()->is_rec)
								<a href="{{ route('anchor.show', [$v->tag()->id]) }}" target="_blank">
							@else
								<a href="{{ route('anchor.preview',[$v->id]) }}" target="_blank">
							@endif
                			    <div class="list_pic_box list_zb_post">
                			    	<div class="list_pic">
                			    		<img src="{{$v->cover}}" height="146px;" width="246px">
                			    	</div>
									@if($v->status)
                			    		<span class="zb_on">直播</span>
									@else
										<span class="zb_off">不在线</span>
									@endif
                			    	<div class="list_pic_cont">
                			    		<span class="list_pic_cont_userpic"><img src="{{$v->avatar}}" height="45px" width="45px"></span>
                			    		<h2>{!!str_replace($key,"<em>".$key."</em>",$v->name)  !!}</h2>
                			    		<p>
                			    		<span class="list_name" title="{{$v->room_name}}">
											@if (mb_strlen($v->room_name) > 7)
												{!! str_replace($key,"<em>".$key."</em>",mb_substr($v->room_name,0,7)) !!}..
											@else
												{!! str_replace($key,"<em>".$key."</em>",$v->room_name) !!}
											@endif</span>

											@if($v->status)
												<span class="list_fs">{{ num2word($v->online) }}在线</span>
											@else
												<span class="list_fs">0 在线</span>
											@endif

                			    		</p>
                			    	</div>
                			    </div>
                		    </a>
                		</li>
							@endforeach
						@endif


                	</ul>
                </div>
				<!--分页-->
				<div class="index_page page_center">
					<div class="global_page">
					{{$archives->links()}}
					</div>
				</div>
                <!--分页-->
			</div>			
		</div>

@endsection